home *** CD-ROM | disk | FTP | other *** search
- MV Move files (MS-DOS) Version 4.2
-
- mv [-hqsv!] source [...] [target]
-
- The sources may be single files, file specifications containing
- wildcards, or multiple file specifications separated by commas.
- File specifications may include disk drives and/or directory
- names.
-
- If multiple files are being moved, the target must be a disk
- drive and/or a directory name. If only one file is being moved,
- the target may also be the name of another file. If the target
- is omitted (syntactically only possible with one source
- argument), the current directory is assumed. If the target name
- ends with a backslash and no such directory exists, it will be
- created.
-
- If a source argument contains multiple file specifications
- separated by commas, disk drive or directory names encountered
- are passed along to subsequent file specifications until
- reassigned. Thus,
-
- mv a:\src\*.c,*.obj,\exe\*.* another.dat b:
-
- is the same as
-
- mv a:\src\*.c a:\src\*.obj a:\exe\*.* another.dat b:
-
- A list of file specifications separated by commas is
- syntactically a single source argument, thus
-
- mv \snerd\bob,carol,ted,alice
-
- will move four files from the \snerd\ directory to the current
- directory, since no target has been specified.
-
- If a target file exists, MV normally asks for verification before
- overwriting.
-
- If the source and target files are on the same drive, the file is
- renamed and/or moved to the new directory without physically
- copying the data. If the move is across drives, CP is spawned to
- do the copy and the source file is deleted if the copy succeeds;
- CP.EXE must be in the current directory or in the search path
- given by the DOS PATH variable.
-
- If a target directory is specified and does not exist, it will be
- created. It is usually necessary to include a trailing slash on
- the target name in this case.
-
-
- Command Line Options
-
- -h (hidden)
-
- Ignore files with the Hidden attribute.
-
- -n (no replace)
-
- Don't overwrite existing files; only do moves to non-existent
- files. No comment is made if a move is skipped due to an already
- existing file.
-
- -q (quiet)
-
- Supress informational move messages.
-
- -s (system)
-
- Ignore files with the System attribute.
-
- -v (verify)
-
- Causes user confirmation to be requested before moving. At each
- file prompt the user answers either Y (do the copy), ! (do the
- move and don't ask for confirmation on future files), or N (don't
- move this file). Any other answer is the same as N
-
- -! (hammer!)
-
- Supress the verification which is normally requested (even
- without -v) before overwriting an existing file.
-
- Options may be combined as in
-
- mv -q! ...
-
- The mv! command is a shorthand for mv -!. Usage is
-
- mv! [-hqsv] source [...] [target]
-
-
- Copyright (c) 1985-89 by Bryan Higgins. All rights reserved.
- Permission is hereby given to reproduce and distribute this
- program without restriction for non-commercial use.
-
- The author may be reached/rewarded at
-
- 1802 Channing Way
- Berkeley, CA 94703-1725
-
- Please specify MV version 4.2 when referring to this program.
-
- One of the Kramden Utilities.
-